package com.simple.template.demo002;

public abstract class AbstractShopping {
    public void buyGoods(){
        //登录
        login();
        //购买
        buy();
        //支付
        pay();
    }

    protected void login() {
        System.out.println("手机号码登录");
    }

    protected abstract void buy();

    protected void pay() {
        System.out.println("支付宝支付");
    }
}
